import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const CUSTOMER: AppRouteRecordRaw = {
  path: '/customer',
  name: 'customer',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.customer.management',
    requiresAuth: true,
    icon: 'icon-user-group',
    order: 0,
  },
  children: [
    {
      path: '/customer/list',
      name: 'CustomerList',
      component: () => import('@/views/customer/index.vue'),
      meta: {
        locale: 'menu.customer.list',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/customer/follow',
      name: 'CustomerFollow',
      component: () => import('@/views/customer/follow/index.vue'),
      meta: {
        locale: 'menu.customer.follow',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default CUSTOMER;
